/** When your routing table is too long, you can split it into small modules **/

import Layout from '../../layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: '/system/manage',
  name: 'System',
  alwaysShow: true,
  meta: {
    title: '系统管理',
    icon: 'xtgl',
    roles: ['superSysOpsAdmin']
  },
  children: [
    {
      path: 'config',
      component: () => import('@/pages/index/views/system-manage/config-manage.vue'),
      name: 'ConfigManage',
      meta: { title: '系统配置' }
    },
    {
      path: 'groupMembers',
      component: () => import('@/pages/index/views/user-manage/GroupMembers.vue'),
      name: 'GroupMembers',
      meta: { title: '公司成员', roles: ['superSysOpsAdmin'], noCache: true }
    },
    {
      path: 'department',
      component: () => import('@/pages/index/views/user-manage/position-manage.vue'),
      name: 'department',
      meta: { title: '岗位管理', roles: ['superSysOpsAdmin', 'orgAdmin', 'superSysOpsAdmin'] }
    },
    {
      path: 'manage',
      component: () => import('@/pages/index/views/user-manage/user-manage.vue'),
      name: 'DynamicTable',
      meta: { title: '用户管理', roles: ['superSysOpsAdmin'], noCache: true }
    },
    {
      path: 'login',
      component: () => import('@/pages/index/views/system-manage/login-log-manage.vue'),
      name: 'LoginLogManage',
      meta: { title: '登录日志', roles: ['superSysOpsAdmin'], noCache: true }
    },
    {
      path: 'dictionary',
      component: () => import('@/pages/index/views/system-manage/data-dictionary.vue'),
      name: 'DataDictionary',
      meta: { title: '数据字典', roles: ['superSysOpsAdmin'] }
    }

  ]
}
export default systemRouter
